package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangge
 * @since 2020-09-17
 */
@TableName("btya_item_unit")
public class ItemUnit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "item_unit_id", type = IdType.ID_WORKER)
    private String itemUnitId;

    @TableField("item_id")
    private String itemId;

    @TableField("item_unit_name")
    private String itemUnitName;

    @TableField("unit_ratio")
    private BigDecimal unitRatio;

    @TableField("modify_date")
    private Date modifyDate;

    @TableField("enable_flag")
    private Integer enableFlag;


    public String getItemUnitId() {
        return itemUnitId;
    }

    public void setItemUnitId(String itemUnitId) {
        this.itemUnitId = itemUnitId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemUnitName() {
        return itemUnitName;
    }

    public void setItemUnitName(String itemUnitName) {
        this.itemUnitName = itemUnitName;
    }

    public BigDecimal getUnitRatio() {
        return unitRatio;
    }

    public void setUnitRatio(BigDecimal unitRatio) {
        this.unitRatio = unitRatio;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Integer getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Integer enableFlag) {
        this.enableFlag = enableFlag;
    }

    @Override
    public String toString() {
        return "ItemUnit{" +
        "itemUnitId=" + itemUnitId +
        ", itemId=" + itemId +
        ", itemUnitName=" + itemUnitName +
        ", unitRatio=" + unitRatio +
        ", modifyDate=" + modifyDate +
        ", enableFlag=" + enableFlag +
        "}";
    }
}
